<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>消息管理</title>
	<%@ include file="/view/common/tags.jsp"%>
	<script type="text/javascript" src="${ctx}/js/My97DatePicker/WdatePicker.js"> </script>
</head>
<body>
	<section class="content">
    	<div class="row">
            <div class="col-md-12">
                <div class="box">
                	<div class="box-body">
						<div class="panel panel-default">
                            <div class="panel-body" style="padding-bottom:5px;">
                                <form class="form-horizontal" action="" method="post" id="dataForm">
                                	<div class="searchMenu">
                                	    <div>
                                		    <label>订单编号：</label>
                                            <input type="text" class="form-control" name="wm[_LIKE$t1.ORDER_NO]" value="${page.wm._LIKE$t1.ORDER_NO}"  placeholder="请输入订单编号">
                                        </div>
                                        <div>
                                        <label>用户帐号：</label>
                                            <input type="text" class="form-control" name="wm[_LIKE$t1.USER_ACCOUNT]" value="${page.wm._LIKE$t1.USER_ACCOUNT}"  placeholder="请输入用户帐号">
                                        </div>
                                        <div>
                                        <label>下单时间：</label>
                                            <input id="createTimeStart" name="wm[_MORE_EQUAL$t1.ORDER_CREATE_TIME]" value="${page.wm._MORE_EQUAL$t1.ORDER_CREATE_TIME}"  type="text"  class="Wdate" 
											  onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',startDate:'%y-%M-%d 00:00:00',alwaysUseStartDate:true,maxDate:'#F{$dp.$D(\'createTimeEnd\')}',minDate:'#F{$dp.$D(\'createTimeEnd\',{d:-30,H:-23,m:-59,s:-59})}'})" /> 
											  <span class="pull-left">&nbsp;-&nbsp;</span>
											  <input id="createTimeEnd" name="wm[_LESS_EQUAL$t1.ORDER_CREATE_TIME]" value="${page.wm._LESS_EQUAL$t1.ORDER_CREATE_TIME}"  class="Wdate" 
								               onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',startDate:'%y-%M-%d 23:59:59',alwaysUseStartDate:true,minDate:'#F{$dp.$D(\'createTimeStart\')}',maxDate:'#F{$dp.$D(\'createTimeStart\',{d:+30,H:+23,m:+59,s:+59})}'})" />
                                        </div>
                                        <div>
                                            <label>订单类型：</label>
                                        	<sk:select cssClass="form-control select" id ="orderFlag" name="wm[t1.ORDER_FLAG]" value="${page.wm.t1.ORDER_FLAG}"  onchange="selectType(this.options[this.options.selectedIndex].value)">
							                	<option value="">请选择</option>
							                	<option value="0">正常</option>
							                	<option value="1">补单</option>
							            	</sk:select>
                                        </div>
                                        <div>
                                    	    <label>游戏名称：</label>
                                        	<sk:select cssClass="form-control select" id ="gameId" name="wm[t1.GAME_ID]" value="${page.wm.t1.GAME_ID}" onchange="selectDo(this.options[this.options.selectedIndex].value)">
							                	<option value="">请选择</option>
												<sk:options  options="${gameNameList}" ></sk:options>
							            	</sk:select>
                                        </div>
                                        <div>
                                    	    <label>游戏区：</label>
                                        	<sk:select cssClass="form-control select" id ="areaId" name="wm[t1.AREA_ID]" value="${page.wm.t1.AREA_ID}" onchange="listServer(this.options[this.options.selectedIndex].value)">
							                	<option id="area_id" value="">请选择</option>
							            	</sk:select>
                                        </div>
                                        <div>
                                    	    <label>游戏服：</label>
                                        	<sk:select cssClass="form-control select" id ="serverId" name="wm[t1.SERVER_ID]" value="${page.wm.t1.SERVER_ID}" >
							                	<option id="server_id" value="">请选择</option>
							            	</sk:select>
                                        </div>
                                        <div class="glType">
                                    	    <label>领取方式：</label>
	                                        <sk:select cssClass="form-control select" name="wm[t1.BUY_CONFIG_ID]" value="${page.wm.t1.BUY_CONFIG_ID}">
	                                            <option class="selectGL" value="">请选择</option>
	                                        </sk:select>
	                                    </div>
	                                    <div class="glType">
                                    	    <label>订单状态：</label>
	                                        <sk:select cssClass="form-control select" name="wm[t1.ORDER_STATUS]" value="${page.wm.t1.ORDER_STATUS}">
	                                            <option  value="">请选择</option>
	                                            <option  value="-1">已取消</option>
	                                            <option  value="10">未完成</option>
	                                            <option  value="30">进行中</option>
	                                            <option  value="20">已完成</option>
	                                        </sk:select>
	                                    </div>
	                                    <div class="glType">
                                    	    <label>赠送内容：</label>
	                                        <sk:select cssClass="form-control select" name="wm[t2.PROPERTY_NAME_DES]" value="">
	                                            <option  value="">请选择</option>
	                                            <option  value="点赞">点赞</option>
	                                            <option  value="棒棒糖">棒棒糖</option>
	                                            <option  value="龙蛋">龙蛋</option>
	                                            <option  value="爱心">爱心</option>
	                                            <option  value="粉丝">粉丝</option>
	                                            <option  value="星贝">星贝</option>
	                                            <option  value="金币">金币</option>
	                                        </sk:select>
	                                    </div>
	                                    <div>
	                                    	<label>关键词：</label>
                                            <input type="text" class="form-control" id="PROPERTY_VALUE" style="width:355px" value=""  placeholder="请输入、ID、链接查询">
                                            <input type="hidden"  name="wm[t2.PROPERTY_VALUE]" >
                                        </div>
                                        <div class="mal10" >
                                            <button type="button"  class="btn btn-primary btn-sm"  onclick="findData()"><span class='glyphicon glyphicon-search'></span>查&nbsp;询</button>
                                            <button type="button"  class="btn btn-primary btn-sm"  onclick="addOrder()"><span class='glyphicon glyphicon-plus'></span>录&nbsp;单</button>
                                        </div>
                                	</div>
                                </form>
                        	</div>
						</div>
                        <table class="table table-hover table-condensed table-bordered table-striped" id="dataTable" >
                            <colgroup>
                            	<col style>
                            	<col style="width:8%">
                            	<col style="width:16%">
                            	<col style="width:13%">
                            	<col style>
                            	<col style>
                            	<col style>
                            	<col style>
                            	<col style>
                            	<col style>
                            	<col style>
                            	<col style>
                            	<col style>
                            </colgroup>
                            <thead>
                            	<tr>
                                	<th data-field="index" data-align="center" data-formatter="indexFormatter" data-sortable="false" style="width:100px;">序号</th>
                                	<th data-field="userAccount" data-align="center" data-sortable="true">用户帐号</th>
                                	<th data-field="orderNo" data-align="center" data-sortable="true">订单编号</th>
                                	<th data-field="orderCreateTime" data-align="center" data-formatter="timeFormatter_point" data-sortable="true">下单时间</th>
                                	<th data-field="gameName" data-align="center" data-sortable="true">游戏名称</th>
                                	<th data-field="buyFlag" data-align="center" data-sortable="false">赠送内容</th>
                                    <th data-field="goods" data-align="center"  data-sortable="false" data-formatter="goodsFormatter">订单数量</th>
                          			<th data-field="alreadyFinishNum" data-align="center" data-sortable="true" data-formatter="alreadyFinishNumFormatter">已完成数量</th>
									<th data-field="actualGetNum" data-align="center" data-sortable="true" data-formatter="actualGetNumFormatter">实际获得</th>
									<th data-field="buyFlag" data-align="center" data-formatter="buyFlagFormatter_point" data-sortable="true">领取方式</th>
									<th data-field="orderTotalMoney" data-align="center" data-sortable="true" data-formatter="orderTotalMoneyFormatter">订单金额</th>
                                    <th data-field="payStatus" data-align="center" data-sortable="true" data-formatter="payStatusFormatter">资金状态</th>
                                    <th data-field="orderStatus" data-align="center" data-sortable="true" data-formatter="orderStatusFormatter">订单状态</th>
                                    <th data-field="deleteButton" data-align="center"  data-formatter="buttonFormatter" data-sortable="false">操作</th>
                                </tr>
                            </thead>
                        </table>
                    </div>
                </div>
            </div>
       	</div>
	</section>
   <%@ include file="/view/common/footer.jsp"%>
   <script type="text/javascript" src="${ctx}/view/js/order/order_list.js"></script>
</body>
<script>
// 提示信息
var msgg='<%=request.getAttribute("msg")%>';
if (msgg && msgg!=null && msgg!='null') { 
	  layer.msg(msgg);
}
</script>
</html>